<script type="text/javascript">
	function getSelectedId(value, li) {
		document.getElementById('id_propietario').value = li.id;
	}
	
	new Ajax.Autocompleter("searchterm","hint","owner_search.php", {afterUpdateElement : getSelectedId});
</script>
